<?php
// +----------------------------------------------------------------------
// | quanli team
// +----------------------------------------------------------------------
// | Copyright (c) 2013-2020 http://www.fistforward.com/ All rights reserved.
// +----------------------------------------------------------------------
// | Author: create by allen.qiang
// +----------------------------------------------------------------------

/**
 * 商品规格操作功能
 *
 * @package 	htdocs
 * @subpackage  quanliadmin
 * @author  	create by allen.qiang
 */
quanli_require('module/base/goods/goodsFittings.class.php');
class pa_goodsFittings {

    public function execute() {

        if (isset($_REQUEST['operFlg']) && $_REQUEST['operFlg'] > 0) {

            switch($_REQUEST['operFlg']) {

                case 1: //商品配件列表
                    $this->FittingsList();
                    break;

                default:
                    backendError();
            }
        }
    }

    /**
     * 商品规格列表
     * @author baitianjun
     *
     */
    private function FittingsList() {

        global $G_SHOP;

        //配件编辑权限
        $G_SHOP->smarty->assign('edit_permission', $G_SHOP->has_permission(537));

        $G_SHOP->smarty->display('goods/goodsFittingsList.tpl');
    }

}